package cn.shengongying.dao;

import cn.shengongying.model.BossCompanyCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 雇主企业名片 Mapper 接口
 * </p>
 *
 * @author RXK
 * @since 2022-01-05
 */
@Repository
public interface BossCompanyCardMapper extends BaseMapper<BossCompanyCard> {

    BossCompanyCard findByBossId(@Param("userId") Long userId);

    List<BossCompanyCard> listAndPage(@Param("companyName") String companyName, @Param("start") int start, @Param("length") int length);

    long countByCondition(@Param("companyName") String companyName);
}
